﻿using System;

namespace Microsoft.Popfly.GameCreator.GameEngine.Events
{
    public interface IEventChecker 
    {
        bool FireThisFrame(double elapsedTimeInSeconds, out BehaviorOwner sender, out PGCEventArgs args);
        /// <summary>
        /// Used by custom code's RemoveEventListener to determine whether a given event type from the javascript engine
        /// corresponds to this event checker.
        /// </summary>
        /// <param name="eventType"></param>
        /// <returns></returns>
        bool IsOfEventType(string eventType);
    }
}
